function getUserPermissions(params) {
  return $axios({
    url: '/permissions/user',
    method: 'get',
    params
  })
}

function getAllPermissions() {
  return $axios({
    url: '/permissions/allPermissions',
    method: 'get'
  })
}

function savePermissions(params) {
  return $axios({
    url: '/permissions',
    method: 'post',
    data: params
  })
}